<template>
    <div>
        1111111111
        <router-link to="/parent/child2">跳转到2</router-link>
        <button @click="forbiddenToThird">禁止回到三</button>
    </div>
</template>

<script>
export default {
    name:'child1',
    methods:{
        forbiddenToThird(){
            this.$router.go(-1)
        }
    }
}
</script>

<style scoped>

</style>